<?php

    if(!defined('BASEPATH'))
        exit('No direct script access allowed');

// CodeIgniter i18n library by Jérôme Jaglale
// http://maestric.com/en/doc/php/codeigniter_i18n
// version 10 - May 10, 2012

    class MY_Config extends CI_Config
    {

        function site_url($uri='')
        {
            if(is_array($uri))
            {
                $uri=implode('/', $uri);
            }

            if(class_exists('CI_Controller'))
            {
                $CI=& get_instance();
                $uri=$CI->lang->localized($uri);
            }

            return parent::site_url($uri);

        }

        function base_url($uri='')
        {
            if(is_array($uri))
            {
                $uri=implode('/', $uri);
            }

            if(class_exists('CI_Controller'))
            {
                $CI=& get_instance();
                $uri=$CI->lang->localized($uri);
            }
            return parent::base_url($uri);

        }

    }

    /* End of file */
